<?php
define("SUBITEMS", 3);
$categories = array();

// Definiere Menue Funktionen
function crypting($string)
{
  return md5($string);
}

function addItem($name, $title="", $link="index.php")
{
  global $categories;
  $name = htmlspecialchars($name);
  $categories[crypting($name)] = array($name, $title, $link);
}

function addSubItem($topitem, $name, $title="", $link="index.php")
{
  global $categories;
  $categories[crypting($topitem)][SUBITEMS][crypting($name)] = array($name, $title, $link);
}

function addSub2Item($topitem, $topitem2, $name, $title="", $link="index.php")
{
  global $categories;
  $categories[crypting($topitem)][SUBITEMS][crypting($topitem2)][SUBITEMS][crypting($name)] = array($name, $title, $link);
}

function addSub3Item($topitem, $topitem2, $topitem3, $name, $title="", $link="index.php")
{
  global $categories;
  $categories[crypting($topitem)][SUBITEMS][crypting($topitem2)][SUBITEMS][crypting($topitem3)][SUBITEMS][crypting($name)] = array($name, $title, $link);
}

// Standard Menus
addItem("Home",   "Startseite des Backends", "index.php");
addItem("Site",   "Alle Einstellungen dieser CMS-Installation", "#");
addItem("Inhalt", "Verwalten der Inhalte", "#");
addItem("System", "Verwalten von Plugins", "#");
addItem("Hilfe",  "Hilfe zu CMReams", "#");
addItem("Logout", "Ausloggen", "index.php?gauntlet_logout=true");
?>